<?php

/**
 * @author tuannguyen2042
 * @copyright 2013
 */
 
?>

<?php if(!empty($locations)): ?>		
<div class="input select">			
  <label for="levelOneLocationsSelect">City</label>				
  <select name="data[Listing][location_id]" id="levelNLocations">
    <option value="">(choose city)</option>
		  
    <?php foreach ($locations as $location): ?>
    <option value="<?php echo $location['Location']['id']; ?>"><?php echo htmlspecialchars($location['Location']['name']); ?></option>
    <?php endforeach; ?>		
    
  </select>				
</div>		
<?php endif; ?>